<?php
	include "./config/fungsi_tampilan.php";
	include "./config/koneksi.php";
	
	$NIM		= $_GET['NIM'];
	$query="SELECT * FROM Petugas WHERE ID_PET='$NIM'";
	$view= oci_parse($conn,$query);
	oci_execute($view);
	while($row=oci_fetch_array($view))
			{
				$NAMA		= $row['ID_PET'];
				$PASSWORD	= $row['NAMA_PET'];
			}	
$content='<form method="POST" action="petugas_ubah_proses.php">
			<table class="table" class="spand12" >
			<thead > 
				<td colspan="2" >
					<div style="margin:0px;align:center;font-size:20pt;margin-top:0px;margin-bottom:2px;padding-top: 4px; padding-bottom: 4px;" class="legend alert alert-info">
						<div align="center">
							FORM UBAH DATA PETUGAS
						</div>
					</div>
				 </td>
			</thead>
				<tr>
						<td>
							ID PETUGAS
						</td>
						<td>
							<input type="hidden" name="ID_PET" VALUE="'.$_GET['NIM'].'">
							'.$_GET['NIM'].'
						</td>
				</tr>
				<tr>
						<td>
							Nama Petugas
						</td>
						<td>
							<input type="text" name="NAMA_PET" VALUE="'.$PASSWORD.'">
						</td>
				</tr>
				<tr>
						<td>
							
						</td>
						<td>
							<button type="submit" class="btn btn-small btn-primary">SIMPAN</button></a>
					</td>
				</tr>
			</table>
		</form>	';
echo printPageUdate($content);
?>




